<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>SysUserAdd</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" href="/static/lib/layuiadmin/layui/css/layui.css" media="all">
	<link rel="stylesheet" href="/static/lib/layuiadmin/style/admin.css" media="all">
    <link rel="stylesheet" href="/static/lib/layuiadmin/style/formSelects-v4.css" />
	<style>
		html,body{height: 99%;width: 98%;}
		.layui-fluid{height: 96%;}
		.layui-row,.layui-col-xs2,.layui-card,.layui-col-xs4,.layui-col-xs6{height: 100%;}
		.tableSelect{top:17% !important;left:27% !important;bottom:initial !important}
		.layui-table-cell .layui-form-checkbox[lay-skin=primary]{top: 5px;}
	</style>
</head>
<body>
<fieldset class="layui-elem-field layui-field-title">
	<legend>人员信息填写</legend>
</fieldset>
<form class="layui-form">
    <input  class="layui-hide  layui-input"  id="upostId" name='upostId' allowInput="false" style="width:100%;" />
    <input  class="layui-hide  layui-input"  id="fileId" name='fileId' allowInput="false" style="width:100%;" />
    <input  class="layui-hide  layui-input"  id="id" name='id' allowInput="false" style="width:100%;" />
	<div class="layui-row layui-col-space10">
		<div class="layui-col-xs10">
			<div class="layui-row layui-col-space10">
				<div class="layui-col-xs12">
					<div class="layui-form-item">
						<label class="layui-form-label"><span style="color: #FF0000;">*</span>所属机构：</label>
						<div class="layui-input-block">
								<p id="orgName" style="border: 1px solid lightgrey; padding-left: 5px; height: 38px; line-height: 38px"></p>
						</div>
					</div>
				</div>

				<div class="layui-col-xs6">
					<div class="layui-form-item">
						<label class="layui-form-label"><span style="color: #FF0000;">*</span>登录名：</label>
						<div class="layui-input-block">
							<input id="loginName" maxlength="50" type="tel" name="loginName" lay-verify="loginName" autocomplete="off" class="layui-input">
						</div>
					</div>
				</div>

				<div class="layui-col-xs6">
					<div class="layui-form-item">
						<label class="layui-form-label"><span style="color: #FF0000;">*</span>姓名：</label>
						<div class="layui-input-block">
							<input type="text" id="userName" maxlength="50" name="userName" lay-verify="userName" autocomplete="off" class="layui-input">
						</div>
					</div>
				</div>

				<div class="layui-col-xs6">
					<div class="layui-form-item">
						<label class="layui-form-label"><span style="color: #FF0000;">*</span>性别：</label>
						<div class="layui-input-block" id="userSex">
							<input type="radio" name="userSex" value="0" title="男" checked="">
							<input type="radio" name="userSex" value="1" title="女">
						</div>
					</div>
				</div>

				<div class="layui-col-xs6">
					<div class="layui-form-item">
						<label class="layui-form-label"><span style="color: #FF0000;">*</span>主岗位：</label>
						<div class="layui-input-block">
							<input type="text" id="postName" name="postName" lay-verify="postName" class="layui-input" onclick="loadPost()">
						</div>
					</div>
				</div>

				<div class="layui-col-xs12">
					<div class="layui-form-item">
						<label class="layui-form-label">副岗位：</label>
						<div class="layui-input-block">
							<input type="text" id="upostName" class="layui-input" onclick="loadUpost()">
						</div>
					</div>
				</div>

			</div>
		</div>

		<div class="layui-col-xs2">
			<div>
				<img id="useraddImage" alt="用户头像" src="/images/bg_image/boy.jpg" style="height:180px;width:150px;">
				<button type="button" class="layui-btn" id="file" style="margin: 10px 0 0 20px;">
					<i class="layui-icon">&#xe67c;</i>上传图片
				</button>
			</div>
		</div>
	</div>

	<div class="layui-row layui-col-space10">
		<div class="layui-col-xs5">
			<div class="layui-form-item">
				<label class="layui-form-label">邮箱：</label>
				<div class="layui-input-block">
					<input id="userEmail" maxlength="100" type="email" name="userEmail" lay-verify="userEmail" autocomplete="off" class="layui-input sysUser">
				</div>
			</div>
		</div>

		<div class="layui-col-xs5">
			<div class="layui-form-item">
				<label class="layui-form-label">手机号：</label>
				<div class="layui-input-block">
					<input id="userPhone" maxlength="50" type="tel" name="userPhone" lay-verify="userPhone" autocomplete="off" class="layui-input sysUser">
				</div>
			</div>
		</div>
	</div>

	<div class="layui-row layui-col-space10">
		<div class="layui-col-xs7" style="text-align: right">
			<div class="layui-input-block">
				<button class="layui-btn" type="button" lay-submit lay-filter="save">保存</button>
				<button class="layui-btn" type="reset">重置</button>
			</div>
		</div>
	</div>


</form>
</body>
<div id="loadTree" style="display: none">
	<form class="layui-form" >
		<div class="layui-form-item">
			<div id="upostTree"></div>
		</div>
	</form>
</div>
<div id="loadTree1" style="display: none">
	<form class="layui-form" >
		<div class="layui-form-item">
			<div id="postTree"></div>
		</div>
	</form>
</div>

<script type="text/javascript" src="../../common/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="/static/lib/layuiadmin/layui/layui.js"></script>
<script type="text/javascript" src="../../common/common.js"></script>
<script type="text/javascript" src="../../common/utils.js"></script>
<script type="text/javascript" src="sysUserAdd.js"></script>
</html>
